package com.rogchen.security.securitycustomuser;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author Rogchen rogchen128@gmail.com
 * @description:
 * @product: IntelliJ IDEA
 * @created Date: 19-11-6 15:06
 **/
public class 密码加密工具测试 {


    public static void main(String[] args) throws InterruptedException {
        BCryptPasswordEncoder cy = new BCryptPasswordEncoder();
        String p1 = cy.encode("123456");
        String p2 = cy.encode("123456");
        System.out.println(p1);
        System.out.println(p2);
        System.out.println(cy.matches("123456",p1));
    }
}
